<div style="padding-bottom: 12px;">
    <div class="pull-left">
        <div>在线人数: <{$online.online_num}> (更新时间:<{date('Y-m-d H:i:s', $online.update_time)}>)</div>
    </div>

    <a class="label-success pull-right" style="color: #fff; padding: 0 4px;" href="<{PubFunc::buildUrl('/oss/?r=online/setting')}>">
        <i class="fa fa-cog"></i> 在线报警设置
    </a>

    <div style="clear:both;"></div>
</div>

<script>
    $(function(){
        $("#save_threshold").click(function(){
            if(window.confirm('是否确定要修改阈值?')) {
                var threshold = $("#threshold_value").val();

                $.get('/oss/?r=online/saveThreshold&g=roma', {threshold: threshold}, function (rs) {
                    alert('修改成功!');
                });
            }
        });
    });
</script>

<{include file="tpl/grid.tpl"}>